package com.example.twitternews;

import android.app.Activity;
import android.view.View;
import android.widget.TextView;

public class MyView extends View
{
    private TextView counter;

    public MyView(Activity activity)
    {
        super(activity, null);

        activity.setContentView(R.layout.activity_main);
        counter = (TextView) activity.findViewById(R.id.counterId);
    }

    public void setLabel(String str)
    {
        counter.setText(str);
    }
}
